@echo off

cd "../src/"

SET CGO_ENABLED=0
SET GOOS=js
SET GOARCH=wasm

go build -ldflags "-s -w" -o snake.wasm main.go

rm ../bin/snake.wasm 
mv snake.wasm ../bin

cd ../
start bin

echo build finish...